package com.tm.servicemsm.utils;

import redis.clients.jedis.Jedis;

/**
 * 2024/7/20 Redis 暂存管理
 */
public class RedisUtil {
    private Jedis jedis;

    public RedisUtil(String host,int port){
        this.jedis=new Jedis(host,port);
    }

    public void set(String key,String value){
        jedis.set(key,value);
    }

    public String get(String key){
        return jedis.get(key);
    }
}
